<!doctype html>
<html lang="en" style="background:#ffffff;">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" href="../../css/aui.css">
    <link rel="stylesheet" href="../../css/normalUser.css">
    <script src="../../js/api.js"></script>
    <title>商家用户个人中心</title>
</head>
<body style="background:#ffffff;">
<div id="app">
    <div class="center-setting center-setting12">
        个人中心
        <img src="../../img/setting.png" alt=""/>
    </div>
    <div class="center-img center-imgbg2">
        <div class="center-rz">
            <!-- 个人中心图片-->
            <img class="center-img-tx" :src="orImg(userMsg.user.userPhoto)" alt="" style="display: block;border-radius: 50%" width="81" height="81"/>
            <div class="center-img-box">
                <img class="center-rz-1" src="../../img/gr2Icon.png" alt=""/>
                <img class="center-rz-2" src="../../img/zIcon.png" alt=""/>
                <img class="center-rz-3" src="../../img/j2Icon.png" alt=""/>
                <img class="center-rz-4" src="../../img/LP2Icon.png" alt=""/>
                <img class="center-rz-5" src="../../img/GP2Icon.png" alt=""/>
                <img class="center-rz-6" src="../../img/q2Icon.png" alt=""/>
            </div>
        </div>
        <img class="center-ewm" src="../../img/ewm3Icon.png" alt=""/>
    </div>
    <div class="center-order">
        <div class="center-order-box center-order-box2">
            <img class="center-account-icon1" src="../../img/myOrder.png" alt=""/>
            <div class="font-base-28">我的订单</div>
            <div class="center-order-show font-base-22" @click="location.href='../orderAndPay/myDingdan.html'">查看全部订单</div>
            <img src="../../img/newGo.png" alt=""/>
        </div>
        <div class="center-order-other">
            <ul>
                <li><img src="../../img/wfk.png" alt=""/></li>
                <li class="font-base-24">待付款</li>
            </ul>
            <ul>
                <li><img src="../../img/dfhIcon.png" alt=""/></li>
                <li class="font-base-24">待发货</li>
            </ul>
            <ul @click="location.href='../orderAndPay/appraise.html'">
                <li><img src="../../img/dpj.png" alt=""/></li>
                <li class="font-base-24">待评价</li>
            </ul>
            <ul>
                <li><img src="../../img/dsh.png" alt=""/></li>
                <li class="font-base-24">待收货</li>
            </ul>
            <ul>
                <li><img src="../../img/tk.png" alt=""/></li>
                <li class="font-base-24">退款/维修</li>
            </ul>
        </div>
        <div class="center-order-box center-order-box2 center-order-box3" @click="location.href='../merchant/indent.html'">
            <img class="center-account-icon1" src="../../img/sjddIcon.png" alt=""/>
            <div class="font-base-28">商家订单</div>
            <div class="center-order-show font-base-22">查看订单</div>
            <img src="../../img/newGo.png" alt=""/>
        </div>
    </div>
    <div class="center-account">
        <div class="center-account-public" @click="location.href='../normalUser/myAccount.html'">
            <img class="center-account-icon1" src="../../img/myAcc.png" alt=""/>
            <div class="font-base-28">我的账户</div>
            <div class="font-base-28 center-account-money">0.00</div>
            <img class="center-account-icon2" src="../../img/newGo.png" alt=""/>
        </div>
        <div class="center-account-public" @click="location.href='../businessUsers/wodejifen.html'">
            <img class="center-account-icon1" src="../../img/myJf.png" alt=""/>
            <div class="font-base-28">我的积分</div>
            <div class="font-base-28 center-account-money">0.000</div>
            <img class="center-account-icon2" src="../../img/newGo.png" alt=""/>
        </div>
        <div class="center-account-public" @click="location.href='../businessUsers/huabao.html'">
            <img class="center-account-icon1" src="../../img/myHb.png" alt=""/>
            <div class="font-base-28">我的华宝</div>
            <div class="font-base-28 center-account-money">0.000</div>
            <img class="center-account-icon2" src="../../img/newGo.png" alt=""/>
        </div>
    </div>
    <div class="center-account center-bank">
        <div class="center-account-public" @click="location.href='../normalUser/yhsf.html'">
            <img class="center-account-icon1" src="../../img/rz.png" alt=""/>
            <div class="center-bank-txt font-base-28">身份认证</div>
            <img class="center-account-icon2" src="../../img/newGo.png" alt=""/>
        </div>
        <div class="center-account-public" @click="location.href='../normalUser/myBlank.html'">
            <img class="center-account-icon1" src="../../img/bank.png" alt=""/>
            <div class="center-bank-txt font-base-28">我的银行卡</div>
            <img class="center-account-icon2" src="../../img/newGo.png" alt=""/>
        </div>
    </div>
    <div class="center-account center-share">
        <div class="center-account-public" @click="location.href='../normalUser/share.html'">
            <img class="center-account-icon1" src="../../img/fx.png" alt=""/>
            <div class="center-bank-txt font-base-28">我的分享</div>
            <img class="center-account-icon2" src="../../img/newGo.png" alt=""/>
        </div>
        <div class="center-account-public">
            <!--我的收藏没页面-->
            <img class="center-account-icon1" src="../../img/sc.png" alt=""/>
            <div class="center-bank-txt font-base-28">我的收藏</div>
            <img class="center-account-icon2" src="../../img/newGo.png" alt=""/>
        </div>
    </div>
</div>
<script src="../../js/vue.min.js"></script>
<script src="../../js/vue-resource.min.js"></script>
<script src="../../js/aui-toast.js"></script>
<script src="../../js/common.js"></script>
<script>
    setToken();
    new Vue({
        el:"#app",
        data:{
            userMsg:{
                address:{},
                user:{}
            }
        },
        mounted:function(){
            this.$nextTick(function () {
                this.getUserMsg()
            })
        },
        methods:{
            getUserMsg:function () {
                this.$http.get(SURL+'app/users/personalData').then(function (res) {
                    console.log(res)
                    this.userMsg.address=res.body.data.address;
                    this.userMsg.user=res.body.data.user;
                    console.log(this.userMsg)
                })
            }
        },
    })
</script>
</body>
</html>